package com.idp.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.idp.system.dto.SysDictionaryDto;
import com.idp.system.dto.SysDictionarySearchDto;
import com.idp.system.entity.SysDictionaryEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 数据字典Mapper
 * @author King
 */
@Mapper
public interface SysDictionaryMapper extends BaseMapper<SysDictionaryEntity> {

	/**
	 * 条件查询
	 * @param sysDictionarySearchDto
	 * @return
	 */
	List<SysDictionaryDto> getList(SysDictionarySearchDto sysDictionarySearchDto);

	/**
	 * 通过主键查询
	 * @param id
	 * @return
	 */
	SysDictionaryDto getById(String id);

	/**
	 * 根据编码查询明细
	 * @param dictCode
	 * @return
	 */
	List<SysDictionaryDto> selectDictionaryByCode(String dictCode);

}
